package com.atguigu.realtime.publisher.traffic.service.impl;

import com.atguigu.realtime.publisher.traffic.bean.TrafficKeyword;
import com.atguigu.realtime.publisher.traffic.bean.TrafficSession;
import com.atguigu.realtime.publisher.traffic.bean.TrafficUvCt;
import com.atguigu.realtime.publisher.traffic.mapper.TrafficChannelStatsMapper;
import com.atguigu.realtime.publisher.traffic.service.TrafficChannelStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficChannelStatsServiceImpl implements TrafficChannelStatsService {


    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;

    @Override
    public List<TrafficUvCt> getUvCt(String date) {
        return trafficChannelStatsMapper.selectUvCt(date);
    }

    @Override
    public List<TrafficSession> getSessionInfo(String date) {
        return trafficChannelStatsMapper.selectSessionInfo(date);
    }


    @Override
    public List<TrafficKeyword> getKeywordCount(String date) {
        return trafficChannelStatsMapper.selectKeywordCount(date);
    }
}
